#include <stdio.h>
#include "fft.h"

//#define CONGP_OUT(port,port_num) port = (
#define NUM (3)
int main(void)
{
    COMPLEX TestArray[] = {
        {0, 0},{1, 0}, {2, 0}, {3, 0},
        
        {4, 0},{5, 0}, {6, 0}, {7, 0},
        #if 0
        {8, 0}, {9,0}, {10, 0}, {11, 0},
        {12, 0}, {13, 0}, {14, 0}, {15, 0}
        
        #endif
    };
    COMPLEX Tmp,Wn;
    int i;
    
    ReLocation(TestArray, NUM);
    
    for(i = 0; i < (1 << NUM); i++)
    {
        printf("%f,%f\n", TestArray[i].Real, TestArray[i].Image);
    }
    
    
    fft(TestArray,NUM);
    
    printf("fft result\n");
    for(i = 0; i < (1 << NUM); i++)
    {
        printf("%f,%f\n", TestArray[i].Real, TestArray[i].Image);
    }
    
    return 1;

}

